<#assign module="news"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datepicker/datepicker.css">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
<link href="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.css" rel="stylesheet" type="text/css" />

</@override>
<@override name="body">

<ul class="nav nav-pills" id="serviceType" style="margin-top:-15px">
	<#if appKey == "2b908a6aeec543c5abdf20a070bdeb86">
     <li><a href="#" data='shouye'>首页</a></li>
	</#if>
	<@pao>
	<li><a href="#" data='pao'>跑腿</a></li>
	</@pao>
	<@daijia>
	<li><a href="#" data='daijia'>代驾</a></li>
	</@daijia>
	<@zhuan>
	<li><a href="#" data='zhuan'>专车</a></li>
	</@zhuan>
	<@freight>
	<li><a href="#" data='freight'>货运</a></li>
	</@freight>
	<@zu>
	<li><a href="#" data='zu'>租车</a></li>
	</@zu>
	<@gasstation>
	<li><a href="#" data='gasstation'>加油站</a></li>
	</@gasstation>
	<@zhuanxian>
	<li><a href="#" data='zhuanxian'>快车</a></li>
	</@zhuanxian>
</ul>

<ul class="nav nav-tabs" style="margin-top:5px" id="contType">
	<@weixin>
	<li><a href="#" data='weixin'>微信公众号</a></li>
	</@weixin>
	<li><a href="#" data='app'>APP</a></li>

	<div class="btn-group" role="group" aria-label="..." style="float:right;margin-top:4px">
  		<button type="button" class="btn btn-default" style="background-color:#333333;color:#fff" onclick="window.location='${ctx}/news/add';"><b>+</b>&nbsp;添加广告</button>
	</div>
</ul>

<div class="tabbable tabs-left" style="margin:5px 0px">
	<@shiro.isMainCompany>
		<#if companys?exists>
			<div class="col-sm-3" style="padding-left:0px;margin-bottom:5px">
				<select class="form-control" id="companyId" name="companyId">
					<option value="">--请选择要查询的公司--</option>
					<#list companys as company>
						<option value="${company.id}">${company.companyName}</option>
					</#list>
				</select>
			</div>
		</#if> 
	</@shiro.isMainCompany>
</div>

<!--列表-->
<div class="tabta-content" style="width:100%">  	
	<table class="table table-condensed table-striped">
		<tbody id="news_tbody">
			<tr>
				<th style='min-width:80px;'>新闻状态</th>
				<th style='min-width:80px;'>新闻导图</th>
				<th style='min-width:100px;'>新闻标题</th>
				<th style='min-width:100px;'>新闻链接</th>
				<th style='min-width:80px;'>新闻作者</th>
				<th style='min-width:80px;'>所属公司</th>
				<th style='min-width:80px;'>发布时间</th>
				<th style='min-width:120px;'>操作</th>
			</tr>
		</tbody>
	</table>
	<br>
	<div style="text-align:center" id="NoData"></div>
	</br>
	<ul class="pagination pull-left pagination-sm pageshow" style="display:none;">
		<li><a></a></li>
	</ul>
	<ul class="pagination pull-left pagination-sm pagedata" style="display:none;">
    </ul>
</div>
</@override>

<@override name="footer">
<script type="text/javascript">
	window.daijia = {ctx : '${ctx}'};
</script>
<script src="${ctx}/assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="${ctx}/assets/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="//api.map.baidu.com/api?v=2.0&ak=AuNk3YS21DSmHEEvIFDf9dbD" type="text/javascript"></script> 
<script src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/RichMarker_min.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/datepicker.js"></script>
<script src="${ctx}/assets/js/jquery.paging.min.js"></script>
<script src="${ctx}/assets/js/news/list.js"></script>
<script src="${ctx}/assets/js/pushmessage.js"></script>
<script src="${ctx}/assets/js/jquery.autocomplete.min.js"></script>
</@override>
<@extends name="../layout.ftl"/>
